I never worked with video at all.
Just asking how is it possible to enable members in my site to upload videos.
I have seen in some site example Tagged.com,there videos got Youtube player)))how is possible to play tube videos in my website.
Its a Social Network web
mrcniceguy 5 Posting Whiz in Training
Recommended Answers
Jump to PostYes. Look up the YT API, but be aware it's a pig. You can play the videos just by embedding code (or using the API again).
A good alternative to YT is Vimeo. I highly recommend it - it has its own API as well.
Jump to PostCan I suggest that you don't allow the pasting of embedded code. It could be really nasty. Just the url should do - strip the video id from the querystring and use that to insert into a ready made embed code, eg.
get youtube video id from your db …
Jump to PostEasy - same as the video code:
For a small thumb:
<img src="http://img.youtube.com/vi/<?php echo $code;?>/2.jpg" />
For a large one, change 2.jpg to 0.jpg.
All 12 Replies

diafol
mrcniceguy 5 Posting Whiz in Training
slyme 27 Junior Poster in Training
mrcniceguy 5 Posting Whiz in Training
mrcniceguy 5 Posting Whiz in Training

diafol
mrcniceguy 5 Posting Whiz in Training
EvolutionFallen 107 Junior Poster
EvolutionFallen 107 Junior Poster
mrcniceguy 5 Posting Whiz in Training

diafol
mrcniceguy 5 Posting Whiz in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.